package com.googlecode.galaxyrise.musiclib.server;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.googlecode.galaxyrise.musiclib.client.MusicLibraryRemoteService;

@Controller
@RequestMapping("/musicLib")
public class MusicLibraryRemoteServiceImpl extends RemoteServiceServlet implements
        MusicLibraryRemoteService {

    private static final long serialVersionUID = 1L;

    public String getLibraryStatus() {
        return "Running";
    }
    
    @RequestMapping
    public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        doPost(request, response);
    }

}
